Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: revision in CI Docker image #1119

Merged
merged 7 commits into from
Dec 16, 2024
Merged

Fix: revision in CI Docker image #1119

merged 7 commits into from
Dec 16, 2024

Conversation

aldur
Copy link
Collaborator

@aldur aldur commented Dec 13, 2024

Description

The Dockerfile we are using in CI prevented the build.rs file from getting the current git_commit, which was resulting in an empty revision (e.g. in metrics, this was also breaking Cloudwatch collection).

(For context, this took me longer than I expected because the code did not check the result of git rev-parse and would produce an empty string on failure).

This fixes it.

Before merging, please that the build resulting from this manual run embeds the correct revision.

@aldur aldur marked this pull request as draft December 13, 2024 13:59
@aldur aldur requested review from djordon and matteojug December 15, 2024 09:06
@aldur aldur marked this pull request as ready for review December 15, 2024 20:57
Copy link
Collaborator

@matteojug matteojug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, devenv local and devenv pulling the built image from CI and got a revision in all of them. CI one:

starting the sBTC signer rust_version="rustc 1.80.0 (051478957 2024-07-21)" revision="fix/revision_in_docker_image" arch="x86_64" env_abi="gnu"

signer/build.rs Outdated Show resolved Hide resolved
@aldur aldur merged commit 946cb29 into main Dec 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants